export default {
    /**
     * 加密手机号码
     * @param phone
     * @returns {*}
     */
    encryptPhoneNumber(phone) {
        if (!phone) {
            return phone;
        }
        if (typeof (phone) === 'string' && phone.length === 11) {
            return phone.substring(0, 3) + '****' + phone.substring(7);
        }
        console.warn('Is not PhoneNumber');
        return '';
    }
};
